<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<%@ page contentType="text/html; charset=UTF-8" %> 
<%@page import="com.peixunp.bean.Place"%>
<%@ page import="finaler.util.PageList" %>
<%@ page import="finaler.util.PageUtil" %>
<%@ page import="com.peixunp.util.Constants" %>
<% Place city =  (Place) request.getAttribute("city"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>培训学校搜索结果</title>
<meta name="keywords" content="培训学校评价网,培训中心评价网,,培训机构评价网,培训学校评价,培训中心评价,培训机构评价">
<meta name="description" content="培训学校评价网,通过学员客观公平的评价,为选择培训学校提供更多参考依据。">
</head>

<%
PageList schoolList = (PageList)request.getAttribute("schoolList");  %>

<jsp:include page="/commonImport.jsp"/> 

<body>
	<div class="content">
		<jsp:include page="/top.jsp"/> 
		<div class="left">

			<jsp:include page="/WEB-INF/jsp/ad/leftAd.jsp"/> 
			
			<h3>搜索到<%=city==null?"":"在<font color=yellow>"+city.getPname()+"市</font>"%><%=request.getAttribute("key")==null?"":"与<font color=yellow>\""+request.getAttribute("key")+"\"</font>"%>相关的培训学校列表:</h3>
			<div class="left_box">
				<!-- loop -->
				<%if(schoolList!=null&& schoolList.getList().size()>0){
					for(int i=0;i< schoolList.getList().size();i++){
						Map<String,Object> map = (HashMap<String,Object>) schoolList.getList().get(i);
					%>
					<div>
						<div>
							<img src="<%=Constants.URL%>/images/arrow.gif" />
							学校名称:<a href="<%=Constants.URL%>/school/<%=map.get("city")%>_<%=map.get("id")%>.html"><font color="#E0691A" size="3"><%=map.get("orgname") %></font></a>&nbsp;&nbsp;&nbsp;
							评分:<font color="#E0691A" size="3"><%=map.get("avgfen")==null?"暂无":map.get("avgfen")%></font><br/>
							<img src="<%=Constants.URL %>/images/arrow_red.gif" width="4" height="13"> <font class="defaultFont">地址：<%=map.get("orgaddr")%></font><br/>
							<img src="<%=Constants.URL %>/images/arrow_red.gif" width="4" height="13"> <font class="defaultFont">电话： <%=map.get("orgtel")%></font><br/> 
							<img src="<%=Constants.URL %>/images/arrow_red.gif" width="4" height="13"> <font class="redFont">培训项目：<%=map.get("orgcontent")%></font><br/>
							<img src="<%=Constants.URL %>/images/arrow_red.gif" width="4" height="13"> <font class="defaultFont">建校年份：<%=map.get("whencreate")%>
								| 人气：<%=map.get("hit")%>
								| 曾读数：<%=map.get("once")%>
								| 想读数：<%=map.get("want")%>
								| 评论数：<%=map.get("rmcount")==null?"0":map.get("rmcount")%>&nbsp;&nbsp;&nbsp;&nbsp;<a href="<%=Constants.URL%>/school/<%=map.get("city")%>_<%=map.get("id")%>.html"><img src="<%=Constants.URL%>/images/go.jpg" border="0"/></a>
							</font>
						</div>
					</div>
					<hr/>
					<%
					}
				}else{
					out.println("<br/><center>找不到相关学校. &nbsp;&nbsp;<img src=\""+Constants.URL+"/images/arrow_red.gif\" width=\"4\" height=\"13\"><a href=\""+Constants.URL+"/school/add.html\">我要添加学校</a></center>");
					
				}%>
				<!--end loop -->
				
			</div>
			<div class="baseRight">
			<%if(schoolList!=null&& schoolList.getList().size()>0){ %>
				<%=PageUtil.getCurrPage(schoolList)%>&nbsp;
				<%=PageUtil.getRecord(schoolList)%>&nbsp;
				<%=PageUtil.getSinglePaginator(schoolList)%>
			<%} %>
			</div>
		</div>
		
		<div class="right">
			<jsp:include page="/WEB-INF/jsp/ad/rightBigAd.jsp"/> 
			<jsp:include page="../../../map.jsp"/> 
			<h3><%=city==null?"":city.getPname()%>最新前30条培训资讯:</h3>
			<div class="right_articles">
				google四方
			</div>
		</div>
		<jsp:include page="/foot.jsp"/> 
	</div>
</body>
</html>